x86/ACPI: restore VESA mode upon resume from S3
authorJan Beulich <jbeulich@suse.com>
Mon, 2 Sep 2019 12:41:19 +0000 (14:41 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 2 Sep 2019 12:41:19 +0000 (14:41 +0200)
commitd1235883bf4e61be0b38e6393d445374b6e52492
tree5c302e8e40921644fa1a9dfaa86d10f376cf8423
parent52dba7bd0b36c1c6651f744dab5b6a7d34af3b20
x86/ACPI: restore VESA mode upon resume from S3

In order for "acpi_sleep=s3_mode" to have any effect, we should record
the video mode we switched to during boot. Since right now there's mode
setting code for VESA modes only in the resume case, record the mode
just in that one case.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/boot/video.S